@echo off
setlocal
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0build-pack.ps1" %*
set EXITCODE=%ERRORLEVEL%
if not "%EXITCODE%"=="0" (
  echo [ERROR] Build failed (exit=%EXITCODE%)
  exit /b %EXITCODE%
)
echo [OK] Build completed.
pause